package com.tuanzi.loan.business.service.xhh.settlementsystem;

import com.tuanzi.loan.business.entity.family.ProductInfo;
import com.tuanzi.loan.business.entity.xhh.settlementsystem.XhhSettlementProduct;
import com.tuanzi.loan.core.service.BaseAuditService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.xhh.settlementsystem.XhhSettlementProductRequest;
import com.tuanzi.loan.vo.response.xhh.settlementsystem.XhhSettlementProductResponse;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author caiwanlin
 * @create 2018-08-16 20:02
 */
public interface XhhSettlementProductService extends BaseAuditService<XhhSettlementProduct, Long> {
    Page<XhhSettlementProductResponse> list(PageSearcher<XhhSettlementProductRequest> pageSearcher);

    List<ProductInfo> getActivityList();

    List<XhhSettlementProduct> getProductList();

    XhhSettlementProduct findByProductName(String productName);

    void deleteByCompanyId(Long companyId);

    void onDelete(Long id);
}
